<?php

require_once Kohana::find_file('libraries', 'commonConstant');

class LoginInit_Model extends LawsBase_Model {

	/**
	 * コンストラクタ
	 */
	public function __construct() {
		parent::__construct();
	}

	public function execute(PHPTAL $template) {
		// TODO Lty-Chiba
		// parent::saveToken();

		// 初期化処理
//		parent::$data['title'] = 'てすとろぐいん';
//		parent::$data['dispErr'] = 'errBoxHidden';
//		parent::$data['errMsgs'] = array();
//		parent::$data['txtLoginid'] = '';

		$template->title = 'てすとろぐいん';
		$template->dispErr = 'errBoxHidden';
		$template->errMsgs = array();
		$template->txtLoginid = '';

		// ユーザ登録画面のテンプレートを取得
		$template->setSource(parent::$tempStore->getTemplate(C_LOGIN_TEMPLATE));
		echo $template->execute();
	}
}